package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 活动排名奖励规则
 */
@Getter
@Setter
@Document(collection = "activity_rank_reward_rule")
public class ActivityRankRewardRule extends EntityBase {
    private String activityId;
    private String taskId;
    /**
     * section,equals,leftInterval,rightInterval
     */
    private String inviteOperatorType = "section";
    /**
     * 证书名
     */
    private String caName;
    /**
     * 礼品
     */
    private String boon;
    /**
     * 优先级,数字越大优先级越高
     */
    private Integer priority;
    /**
     * 类型:country:全国,province:省,city:城市,university:高校,team:小组
     */
    private String rankType = "country";
    /**
     * 志愿时长,默认为0
     */
    protected Integer volunteerDuration = 0;
    /**
     * 单位
     */
    protected String unit = "个";
    /**
     * 开始区间
     */
    protected Integer startValue;
    /**
     * 结束区间
     */
    protected Integer endValue;
    /**
     * 等于值
     */
    protected Integer equalsValue;
}
